package com.dhcc.bpm.modules.log.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.dhcc.bpm.modules.log.entity.TpsPeak;
import com.dhcc.bpm.modules.log.vo.GatewayLogDayVO;
import com.dhcc.bpm.modules.log.vo.TpsModelVO;
import com.dhcc.bpm.modules.log.vo.TpsPeakVO;

import java.util.List;

/**
 * <p>
 * tps峰值表 Mapper 接口
 * </p>
 *
 * @author xiafayu
 * @since 2021-05-31
 */
public interface TpsPeakMapper extends BaseMapper<TpsPeak> {
    /**
     * @Description 自定义分页
     * @Author xiafayu
     * @Date 2020/2/24 15:36
     * @param page
     * @param tpsPeakVO
     * @return com.baomidou.mybatisplus.core.metadata.IPage<com.dhcc.bpm.modules.log.vo.TpsPeakVO>
     **/
    List<TpsPeakVO> selectTpsPeakPage(IPage<TpsPeakVO> page, TpsPeakVO tpsPeakVO);

    List<TpsModelVO> countNumBydate(GatewayLogDayVO gatewayLogDayVO);

    List<TpsModelVO> countNumByYear(GatewayLogDayVO gatewayLogDayVO);
}
